<!DOCTYPE html>
<html lang="zh">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>传客后台管理-用户管理</title>
	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
	<link rel="stylesheet" href="__STATIC__/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
	<link rel="stylesheet" href="__STATIC__/assets/css/ready.css">
	<link rel="stylesheet" href="__STATIC__/assets/css/demo.css">
</head>
<body>
	<div class="wrapper">
		{include file="public:header"/}
		{include file="public:headermenu"/}
			<div class="main-panel">
				<div class="content">
					<div class="cotainer-fluid">
						<div class="card">
							<h5 style="  padding: 15px 15px;
  background-color: transparent;">用户管理</h4>
							<h6 style="  padding: 15px 15px;
  background-color: transparent;">用户列表</h6>
						</div>
						
					<!-- 搜索card -->
						<div class="card">
							<div class="card-head">
								<h6 class="card-header">搜索条件</h6>
							</div>
								<div class="card-body">
									<form method=post action="{:url('User/find')}" enctype="multipart/form-data"  class="form-horizontal">
										<div class="form-group from-show-notify row">
												<div class="col-lg-2 col-md-2 col-sm-3 ">
													<input type="text" name="findid" class="form-control" id="finduid" placeholder="输入用户ID">
												</div>
												<div class="col-lg-1 col-md-4 col-sm-3 text-right">
													<label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">电话：</font></font></label>
												</div>
												<div class="col-lg-2 col-md-2 col-sm-3 ">
													<input type="text" name="findphone" class="form-control" id="finduphone" placeholder="输入电话号查找">
												</div>
												<div class="col-lg-1 col-md-4 col-sm-3 text-right">
													<label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">状态：</font></font></label>
												</div>
												<div class="col-lg-2 col-md-2 col-sm-3">
													<input type="text" name="findstate" class="form-control" id="findustate" placeholder="输入用户ID">
												</div>
										</div>
									

										<div class="card-footer">
												<input type="submit" class="btn btn-primary" value="搜索">
										</div>
									</form>
								</div>
						</div>
					<!-- 搜索card结束 -->
										
						<div class="row">
							<div class="col-md-12">
								<div class="card">
									<div class="card-header">
										<div class="card-title">用户列表</div>
									</div>
									<div class="card-body">
										<table class="table table-striped  mt-3">
											<thead>
												<tr>
													<th scope="col"><p class="text-center">状态</p></th>
													<th scope="col"><p class="text-center">用户ID</p></th>
													<th scope="col"><p class="text-center">头像</p></th>
													<th scope="col"><p class="text-center">用户名</p></th>
													<th scope="col"><p class="text-center">手机号</p></th>
													<th scope="col"><p class="text-center">邮箱</p></th>
													<th scope="col"><p class="text-center">注册时间</p></th>
													<th scope="col"><p class="text-center">订单</p></th>
													<th scope="col"><p class="text-center">文件</p></th>
													<th scope="col"><p class="text-center">收藏</p></th>
													<th scope="col"><p class="text-center">操作</p></th>
												</tr>
											</thead>
											<tbody>
												{volist name="userList" id="user"}
												<tr>
													<td>
														{if condition="$user.ustate==1"}<p class="text-center text-success">正常</p>
														{else/}<p class="text-center text-error">封禁</p>
														{/if}
													</td>
													<td><p class="text-center">{$user.uid}</p></td>
													<td class="text-center">
														<img src="__STATIC__/Userimages/{$user.upic}" width="70px" height="70px" >
													</td>
													<td><p class="text-center">{$user.uname}</p></td>
													<td><p class="text-center">{$user.uphone}</p></td>
													<td><p class="text-center">{$user.uemail}</p></td>
													<td><p class="text-center">{$user.uzctime}</p></td>
													<td class="text-center">3 <br> <a href="#" class="text-default">详情</a></td>
													<td class="text-center">3 <br> <a href="#" class="text-default">详情</a></td>
													<td class="text-center">3 <br> <a href="#" class="text-default">详情</a></td>
													<td class="text-center">
														<a class="text-danger" href="{:url('shield',['id'=>$user.uid])}"><i class="icon-trash"></i> 解除/封禁</a><br>
														<a class="text-info" href="{:url('resetpassword',['id'=>$user.uid])}" ><i class="icon-edit" ></i> 重置密码</a></td>
													<td>
                                                </td>
												</tr>
												{/volist}
												
												
											</tbody>
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>	
				</div>
			</div>			
				<footer class="footer">
					<div class="container-fluid">
						<nav class="pull-left">
							<ul class="nav">
								<li class="nav-item">
									<a class="nav-link" href="#">
										ThemeKita
									</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="#">
										Help
									</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="#license/#free-item">
										Licenses
									</a>
								</li>
							</ul>
						</nav>
						<div class="copyright ml-auto">
							2018, made with <i class="la la-heart heart text-danger"></i> by <a href="#">ThemeKita</a> - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></div>				
					</div>
				</footer>
			</div>
		</div>
	</div>

	
</body>
		{include file="public:footer"/}
</html>